import Vue from 'vue'
import App from './App'
import router from './router'
import store from "./store/store";
import VueBus from 'vue-bus';//中央事件总线
import VueLazyload from 'vue-lazyload'  //图片懒加载
import infiniteScroll from 'vue-infinite-scroll'  //无限滚动

import { Carousel, CarouselItem, Slider, Drawer, Col, Row, Pagination, Popover, Button, Form, FormItem, Input} from 'element-ui';
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Slider)
Vue.use(Drawer)
Vue.use(Row)
Vue.use(Col)
Vue.use(Pagination)
Vue.use(Popover)
Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
import { Message } from "element-ui";
Vue.prototype.$message = Message


//事件总线
Vue.use(VueBus);
//图片懒加载
Vue.use(VueLazyload, {
  loading: require('@/assets/img/default.png'),//加载中图片，一定要有，不然会一直重复加载占位图
});
//无限滚动
Vue.use(infiniteScroll)


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
